
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml">

	<ui:define name="body">
		<h:form>
			<p:dataTable id="list" var="bean" value="#{configuracaoListMB.resultList}">
				<f:facet name="header">#{messages['configuracao.list.table.title']}</f:facet>

				<p:column sortBy="#{bean.cnpjMunicipio}">
					<f:facet name="header">#{messages['configuracao.label.cnpjMunicipio']}</f:facet>
					<h:commandLink action="#{configuracaoListMB.getNextView}" actionListener="#{configuracaoListMB.clear}">
						<h:outputText value="#{bean.cnpjMunicipio}" 						converter="cpfCnpjConverter"
						/>
						<f:param name="id" value="#{bean.id}" />
					</h:commandLink>
				</p:column>
						
				<p:column sortBy="#{bean.municiopio}">
					<f:facet name="header">#{messages['configuracao.label.municiopio']}</f:facet>
					<h:commandLink action="#{configuracaoListMB.getNextView}" actionListener="#{configuracaoListMB.clear}">
						<h:outputText value="#{bean.municiopio}" />
						<f:param name="id" value="#{bean.id}" />
					</h:commandLink>
				</p:column>
						
				<p:column sortBy="#{bean.responsavel}">
					<f:facet name="header">#{messages['configuracao.label.responsavel']}</f:facet>
					<h:commandLink action="#{configuracaoListMB.getNextView}" actionListener="#{configuracaoListMB.clear}">
						<h:outputText value="#{bean.responsavel}" />
						<f:param name="id" value="#{bean.id}" />
					</h:commandLink>
				</p:column>
						
				<p:column sortBy="#{bean.contatoResponsavel}">
					<f:facet name="header">#{messages['configuracao.label.contatoResponsavel']}</f:facet>
					<h:commandLink action="#{configuracaoListMB.getNextView}" actionListener="#{configuracaoListMB.clear}">
						<h:outputText value="#{bean.contatoResponsavel}" />
						<f:param name="id" value="#{bean.id}" />
					</h:commandLink>
				</p:column>
						
				<p:column sortBy="#{bean.emailResponsavel}">
					<f:facet name="header">#{messages['configuracao.label.emailResponsavel']}</f:facet>
					<h:commandLink action="#{configuracaoListMB.getNextView}" actionListener="#{configuracaoListMB.clear}">
						<h:outputText value="#{bean.emailResponsavel}" />
						<f:param name="id" value="#{bean.id}" />
					</h:commandLink>
				</p:column>
						
			</p:dataTable>
		</h:form>

	</ui:define>
</ui:composition>